import App from './App'
import store from './store'

import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'

import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

// 引入全局TuniaoUI
import TuniaoUI from 'tuniao-ui'
Vue.use(TuniaoUI)

// 引入TuniaoUI提供的vuex简写方法
let vuexStore = require('@/store/$t.mixin.js')
Vue.mixin(vuexStore)

// 引入TuniaoUI对小程序分享的mixin封装
let mpShare = require('tuniao-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)

import request from './util/request/index.js'
Vue.prototype.request = request;

import contentCheck from './util/contentCheck.js'
Vue.prototype.contentCheck = contentCheck


import config from './config'
Vue.prototype.config = config;

import customEmpty from './components/customEmpty.vue'
Vue.component('customEmpty',customEmpty)

const app = new Vue({
  store,
  ...App
})

app.$mount()